package com.aismy.admin.service;

import com.aismy.admin.dto.QuestionDTO;
import com.aismy.admin.entity.Question;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface QuestionService extends IService<Question> {
    
    List<Question> getQuestionsByScaleId(Long scaleId);
    
    void addQuestion(Long scaleId, Question question);
    
    void updateQuestion(Long scaleId, Question question);
    
    void deleteQuestion(Long scaleId, Long questionId);

    // 新增分页查询方法
    Page<Question> getQuestionPage(Integer page, Integer size, Integer scaleId, String query);
    
    QuestionDTO getQuestionWithOptions(Long id);
    
    void saveQuestionWithOptions(QuestionDTO questionDTO);
    
    void updateQuestionWithOptions(QuestionDTO questionDTO);
    
    void removeQuestionWithOptions(Long id);
} 